﻿@using si.caha.Model;
@using si.caha.Repository;

@{
    if(IsPost)
    {
        var dataContext = new DataContext();
        var imageId = Request["frontImage"].AsInt();
        var imageRepository = new ImageRepository(dataContext);
        imageRepository.SetFrontImage(imageId);
    }
    else
    {
        Response.Redirect("~/Admin");
    }
}
